package com.gitee.wsl.common.chart.api

interface ChartDatasetChangeListenerContain<L> {

    val datasetChangeListenerList :MutableList<L>

    fun addDatasetChangeListener(listener: L){
        datasetChangeListenerList.add(listener)
    }

    fun removeDatasetChangeListener(listener:L){
        datasetChangeListenerList.remove(listener)
    }

    fun clearDatasetChangeListener(){
        datasetChangeListenerList.clear()
    }
}

